Skip to content

refactor: move slack url creation to its own package#5225

Draft
santiagofn wants to merge 2 commits intoprometheus:mainfrom
santiagofn:refactor/slack-extract-apiurl-pkg
Draft

refactor: move slack url creation to its own package#5225
santiagofn wants to merge 2 commits intoprometheus:mainfrom
santiagofn:refactor/slack-extract-apiurl-pkg

Conversation

@santiagofn
Copy link
Copy Markdown

@santiagofn santiagofn commented May 6, 2026

Part 2 of a series implementing threaded message support for the Slack notifier. Full picture: #5150. Depends on #5224.

Summary

Extracts Slack API URL resolution logic from slack.go into a new internal package notify/slack/internal/apiurl. Adds comprehensive unit tests covering all resolution paths (direct URL, file-based, global config).

santiagofn added 2 commits May 6, 2026 14:33
Signed-off-by: Santiago Fernández Núñez <santiago.nunez@nubank.com.br>
Signed-off-by: Santiago Fernández Núñez <santiago.nunez@nubank.com.br>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 6, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 403444e4-5d82-45b0-bd65-9080ddc9d982

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@SoloJacobs SoloJacobs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this was largely AI-generated. We'd ask that contributions be reviewed and understood by the author before submitting, including making sure the commit message accurately describes what the code actually does. The message here says "refactor" but the change alters behavior. Happy to look at it again once it's been properly reviewed on your end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants